package com.rick.awarenessdemo.base

import android.app.Application
import android.graphics.Color
import android.view.Gravity
import com.blankj.utilcode.util.ToastUtils
import com.rick.awarenessdemo.util.MapUtil

class MyApp : Application() {
    override fun onCreate() {
        super.onCreate()
        MapUtil.init(this)
        initToast()
    }

    private fun initToast() {
        val maker = ToastUtils.getDefaultMaker()
        maker.setBgColor(Color.parseColor("#aa000000"))
        maker.setTextColor(Color.WHITE)
        maker.setGravity(Gravity.CENTER, 0, 0)
    }
}